<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">
	<head>
		<link href="/GAJE_2.0/secure/css/stylesheet.css" rel="stylesheet" type="text/css"/>
	</head>
	<body style="background-color: #ffffff; background-image:none;">
	<div align="center">
		<h:form>
			<h:panelGrid columns="1" width="80%" styleClass="outerTable" columnClasses="standardTable_ColumnCentered">

			<f:facet name="header">
				<h:outputText style="font-weight:normal;" value="#{judgeMainPage.currentTableName}"/>
			</f:facet>

			<h:column>
			<center>
			<t:dataTable renderedIfEmpty="false"  id="judgeDynamicTable"
				value="#{judgeMainPage.tableDataModel}" var="table"
				styleClass="iCubed" width="100%" rows="10"
				rowIndexVar="rowNumber" preserveSort="true"
				preserveDataModel="true"> 
	          	<h:column>
					<f:facet name="header">
						<h:outputText id="content" value="Content" />
					</f:facet>
					<h:outputLabel value="#{rowNumber+1}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText id="instatiationTime"
							value="Initiated Date" />
					</f:facet>
			
					<h:outputText value="#{table.instantiationDateTime}"> 
						<f:convertDateTime 
							dateStyle="medium" 
							timeZone="America/New_York" 
							type="date"/>
					</h:outputText>
				</h:column>
				<h:column >
					<f:facet name="header">
						<h:outputText id="defendantName" value="Defendant Name" />
					</f:facet>
					
					<h:outputText value="#{table.defendantName}" /> 
				</h:column>
				<h:column >
					<f:facet name="header">
						<h:outputText id="caseType"
							value="Case Type" />
					</f:facet>
 					<h:outputText value="#{table.caseType}" /> 

				</h:column>
					<h:column >
					<f:facet name="header">
						<h:outputText id="caseStatus"
							value="Case Status" />
					</f:facet>
 					<h:outputText value="#{table.status}" /> 

				</h:column>
				<h:column >
					<f:facet name="header">
						<h:outputText id="lastEvent" value="Last Event" />
					</f:facet>
					<h:commandLink id="filingIDLink" value="Event Log"
								action="#{judgeMainPage.gotoHistoryPage}" target="_parent" >
								 <f:param name="caseUuid" value="#{table.uuid}"  />
						</h:commandLink> 
				</h:column >
				<h:column >
					<f:facet name="header">
							<h:outputText id="lastEventTime" value="Last Event Time" />
					</f:facet>
						<h:outputText value="#{table.eventDateTime}"> 
							<f:convertDateTime 
								dateStyle="medium" 
								timeZone="America/New_York" 
								type="date"/>
						</h:outputText>
				</h:column>
				
				<h:column>
					<f:facet name="header">
						<h:outputText id="filingID" value="Case Details" />
					</f:facet>
					<h:commandLink value="Case Details" action="#{judgeMainPage.gotoCaseDetailsPage}" target="_parent">
						<f:param name="case3" value="#{table}" binding="#{judgeMainPage.caseDetailsPageClicked}" />
					</h:commandLink>					
				</h:column>
						  
			</t:dataTable>
			</center>
			</h:column>			
			<h:column>
			<div align="center">
				<t:dataScroller fastStep="5"
					styleClass="scrollerTable" pageCountVar="pageCount"
					pageIndexVar="pageIndex" paginator="true" paginatorMaxPages="10"
					paginatorTableClass="paginator"
					paginatorActiveColumnStyle="font-weight:bold;" immediate="false"
					for="judgeDynamicTable">
					<f:facet name="first">
						<t:graphicImage url="/images/arrow-first.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="last">
						<t:graphicImage url="/images/arrow-last.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="previous">
						<t:graphicImage url="/images/arrow-previous.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="next">
						<t:graphicImage url="/images/arrow-next.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="fastforward">
						<t:graphicImage url="/images/arrow-ff.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="fastrewind">
						<t:graphicImage url="/images/arrow-fr.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
				</t:dataScroller>
				</div>
				</h:column>
			</h:panelGrid>
		</h:form>
		
		<h:form rendered="#{judgeMainPage.displaySecondTable}">
			<h:panelGrid columns="1"
				width="80%"
				styleClass="outerTable"
				columnClasses="standardTable_ColumnCentered">
			<f:facet name="header">
				<h:outputText style="font-weight:normal;"
					value="Cases - Disposition Review Completed"/>
			</f:facet>
			<h:column>
			<center>
			<t:dataTable renderedIfEmpty="false"  id="judgeSecondTable"
				value="#{judgeMainPage.secondTableDataModel}" var="table2"
				styleClass="iCubed" width="100%" rows="10"
				rowIndexVar="rowNumber" preserveSort="true"
                preserveDataModel="true"> 
	          	<h:column >
					<f:facet name="header">
						<h:outputText id="content" value="Content" />
					</f:facet>
					<h:outputLabel value="#{rowNumber+1}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText id="instatiationTime"
							value="Initiated Date" />
					</f:facet>
			
					<h:outputText value="#{table2.instantiationDateTime}"> 
						<f:convertDateTime 
							dateStyle="medium" 
							timeZone="America/New_York" 
							type="date"/>
					</h:outputText>
				</h:column>
				<h:column >
					<f:facet name="header">
						<h:outputText id="defendantName" value="Defendant Name" />
					</f:facet>
					
					<h:outputText value="#{table2.defendantName}" /> 
				</h:column>
				<h:column >
					<f:facet name="header">
						<h:outputText id="caseType"
							value="Case Type" />
					</f:facet>
 					<h:outputText value="#{table2.caseType}" /> 

				</h:column>
					<h:column >
					<f:facet name="header">
						<h:outputText id="caseStatus"
							value="Case Status" />
					</f:facet>
 					<h:outputText value="#{table2.status}" /> 

				</h:column>
				<h:column >
					<f:facet name="header">
						<h:outputText id="lastEvent" value="Last Event" />
					</f:facet>
					<h:commandLink id="filingIDLink" value="Event Log"
								action="#{judgeMainPage.gotoHistoryPage}" target="_parent" >
								 <f:param name="caseUuid" value="#{table2.uuid}"  />
						</h:commandLink> 
				</h:column >
				<h:column >
					<f:facet name="header">
							<h:outputText id="lastEventTime" value="Last Event Time" />
					</f:facet>
						<h:outputText value="#{table2.eventDateTime}"> 
							<f:convertDateTime 
								dateStyle="medium" 
								timeZone="America/New_York" 
								type="date"/>
						</h:outputText>
				</h:column>
				
				<h:column>
					<f:facet name="header">
						<h:outputText id="filingID" value="Case Details" />
					</f:facet>
					<h:commandLink value="Case Details"
						action="#{judgeMainPage.gotoCaseDetailsPage}"
						target="_parent">
						<f:param name="case3"
							value="#{table2}"
							binding="#{judgeMainPage.caseDetailsPageClicked2}" />
					</h:commandLink>					
				</h:column>

			</t:dataTable>
			</center>
			</h:column>			
			<h:column>
			<div align="center">
				<t:dataScroller fastStep="5"
					styleClass="scrollerTable" pageCountVar="pageCount"
					pageIndexVar="pageIndex" paginator="true" paginatorMaxPages="10"
					paginatorTableClass="paginator"
					paginatorActiveColumnStyle="font-weight:bold;" immediate="false"
					for="judgeSecondTable">
					<f:facet name="first">
						<t:graphicImage url="/images/arrow-first.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="last">
						<t:graphicImage url="/images/arrow-last.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="previous">
						<t:graphicImage url="/images/arrow-previous.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="next">
						<t:graphicImage url="/images/arrow-next.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="fastforward">
						<t:graphicImage url="/images/arrow-ff.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
					<f:facet name="fastrewind">
						<t:graphicImage url="/images/arrow-fr.gif" border="1"
							styleClass="objectList_GraphicImage" />
					</f:facet>
				</t:dataScroller>
				</div>
				</h:column>
			</h:panelGrid>
		</h:form>
		</div>	
	</body>
</html>